home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1984 December
/
1984-12.d64
/
magic voice
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
2KB
|
48 lines
10 dim c$(10),eq$(40),ho$(40),t$(20):goto80
20 fori=1to40:ifk$=ho$(i)thenk$=eq$(i):i=40
30 next:fori=1to3
40 ifk$<>h1$(i)then60
50 k$=e1$(i):(NULL)endk$:t$(w)=k$:w=w+1:k$=e1$(i+3):i=3
60 next:return
70 fori=0tow-1:(NULL)endt$(i):next:fori=0tow-1:t$(i)="":next:w=0:return
80 poke49457,76:poke49458,174:poke49459,167:rem avert illegal qty error
90 fork=1to10:readc:c$(k)=chr$(c):next:rem editing commands
100 fori=1to40:readho$(i),eq$(i):next:rem homonymns & equivalents
110 fori=1to3:readh1$(i):next:fori=1to6:reade1$(i):next:rem 2-part equivalents
120 poke53281,1:poke53280,6:poke53272,23:rem screen colors & lowercase
130 print"[147][198][201][206][199][197][210] [212][193][204][203]"
140 print"":input"[210]ate (1-10)[146]";rt$
150 rt=val(rt$):ifrt<1orrt>10then130
160 print "[156][211]ay each letter (y/n) ?"
170 geta$:ifa$=""ora$<>"y"anda$<>"n"then170
180 pl=-(a$="y")
190 gosub380
200 print"[175][157]";:(NULL)for(rt):rt=(rt=10)*10+rt:poke1024,rt+48:poke55296,0
210 geta$:ifa$=""then210
220 ifpos(0)>78thena$=chr$(13)
230 print" [157]";:t=0:fori=1to10:ifa$=c$(i)thent=i:i=10
240 nexti:ift=3ort=8thenprintc$(8):gosub380
250 ift=2ort=4ort=7thenprinta$;:ift=4andlen(k$)>0thenk$=mid$(k$,1,len(k$)-1)
260 ift<>0then200
270 ifa$=chr$(133)thenrt=rt+1+(rt=10)*10:goto200
280 ifa$>chr$(192)anda$<chr$(218)thenprinta$;:a$=chr$(asc(a$)-128):goto360
290 ifa$<>chr$(32)then320
300 ifk$=""thenprinta$;:goto200
310 gosub20:printa$;:(NULL)endk$:t$(w)=k$:k$="":w=w+1:goto200
320 ifa$<>chr$(13)then350
330 ifk$=""thenprinta$;:gosub70:goto200
340 gosub20:t$(w)=k$:k$="":w=w+1:printa$;:gosub70:goto200
350 printa$;
360 k$=k$+a$:ifpl=1then:(NULL)enda$
370 goto200
380 print"[147] [204][197][212] [217][207][213][210] [198][201][206][199][197][210][211] [159] [196][207] [212][200][197] [212][193][204][203][201][206][199] [146]":return
390 data 17,18,19,20,29,145,146,147,148,157
400 rem 17=cd 18=rvs 19=hm 20=del 29=cr 145=cu 146=roff 147=clr 148=inst 157=cl
410 data ad,add,bee,b,see,c,sea,c,gee,g,gray,grey,eye,i,inn,in,jay,j
420 data moor,more,knot,not,ore,or,oar,or,pea,p,queue,q,tea,t,tee,t,tie,ty
430 data ewe,u,ewes,use,wee,we
440 data #,number,&,and,',apostrophe,*,times,+,plus,-,minus
450 data 0,zero,1,one,2,two,3,three,4,four,5,five,6,six,7,seven,8,eight
460 data 9,nine,=,equals,?,question,@,at
470 data /,<,>,divided,less,more,by,than,than